/*
 * author      : 吴中勤 
 * date        : 2018/9/26
 * description : moby订单场景
 */

package com.deepexi.adapter.facade.moby;

public enum MobyOrderSenseEnum {

                NEW_VEHICLE_ORDER_TYPE("0100", "NEW_VEHICLE_ORDER_TYPE",           "新车类型"),
       BOUTIQUE_AFTER_SALES_ORDER_TYPE("0200", "BOUTIQUE_AFTER_SALES_ORDER_TYPE",  "精品购买,不关联车"),
      BOUTIQUES_AFTER_SALES_ORDER_TYPE("0201", "BOUTIQUES_AFTER_SALES_ORDER_TYPE", "精品包购买,不关联车"),
        MAINTAI_AFTER_SALES_ORDER_TYPE("0300", "MAINTAI_AFTER_SALES_ORDER_TYPE",   "保养类型"),

    //
    ;

//    /** 新车类型 */
//    public static final String NEW_VEHICLE_ORDER_TYPE = "NEW_VEHICLE_ORDER_TYPE";
//    /** 保养类型 */
//    public static final String MAINTAI_AFTER_SALES_ORDER_TYPE = "MAINTAI_AFTER_SALES_ORDER_TYPE";
//    /** 精品类型 */
//    public static final String BOUTIQUE_AFTER_SALES_ORDER_TYPE = "BOUTIQUE_AFTER_SALES_ORDER_TYPE";
//    /** 精品包类型 */
//    public static final String BOUTIQUES_AFTER_SALES_ORDER_TYPE = "BOUTIQUES_AFTER_SALES_ORDER_TYPE";


    public final String code;
    public final String name;
    public final String desc;

    MobyOrderSenseEnum(String code, String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }

    public MobyOrderSenseEnum getByName(String name) {
        for (MobyOrderSenseEnum e : MobyOrderSenseEnum.values()) {
            if (e.name.equals(name)) return e;
        }
        return null;
    }

}
